setClassName

open fun setClassName(@NonNull string: String)(source)

Set the class name of the view, as per View.getAccessibilityClassName(). Compatibility behavior:

  • SDK 23 and above, this method matches platform behavior.
  • SDK 22 and below, this method does nothing.